﻿<div ng-controller="RegisterController">
    <h1>Register</h1>
    Username: <input class="form-control form-inline" placeholder="Username" ng-model="user.username" />
    Password: <input class="form-control form-inline" placeholder="Password" ng-model="user.password" />
    Confirm: <input class="form-control form-inline" placeholder="Confirm Password" ng-model="user.passwordConfirm" />
    Email:    <input class="form-control form-inline" placeholder="Email" ng-model="user.email" />
    <button class="btn btn-success" ng-show="user.password === user.passwordConfirm && user.password !== null" ng-click="register()">Submit</button>
    <button class="btn btn-success" ng-show="user.password !== user.passwordConfirm || user.password === null" disabled>Submit</button>
</div>